<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<c:set var="path" value="..${ctx}/common"/>

<script type="text/javascript">
$(document).ready(function(){
	//$("#bs_ship_in_decl_edit_general").click();
	//$("#bs_ship_in_decl_edit_general").trigger("href");
	//$("#bs_ship_in_decl_edit_general").get(0).click();
	//alert($("#bs_ship_in_decl_edit_general"));
});

</script>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="edit" onclick="saveAllActionUnit();" title="保存所有单元"><span>保存</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" onclick="deleteActionUnit();"><span>删除</span></a></li>
		</ul>
	</div>

	<div class="tabs" currentIndex="0" eventType="click">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span>总申报单</span></a></li>
					<li><a href="${path}/view.html?jsp=ship/inport/ship_man_list" class="j-ajax"><span>船员名单</span></a></li>
					<li><a href="${path}/view.html?jsp=ship/base/dock_edit" class="j-ajax"><span>检验检疫</span></a></li>
					<li><a href="${path}/view.html?jsp=ship/inport/voyage_list" class="j-ajax"><span>航次摘要</span></a></li>
					<li><a href="${path}/view.html?jsp=ship/base/dock_edit" class="j-ajax"><span>货物申报</span></a></li>
					<li><a href="${path}/view.html?jsp=ship/base/dock_edit" class="j-ajax"><span>船用物品</span></a></li>
					<li><a href="${path}/view.html?jsp=ship/inport/food_list" class="j-ajax"><span>食品清单</span></a></li>
					<li><a href="${path}/view.html?jsp=ship/base/dock_edit" class="j-ajax"><span>航海健康</span></a></li>
				</ul>
			</div>
		</div>
		<div class="tabsContent" style="height:98%;">
			<div>
				<div class="pageFormContent" layoutH="98%">
				<fieldset>
					<legend>基本信息</legend>
				<dl>
					<dt>船舶编码：</dt>
					<dd><input name="SHIP_ID" type="text" size="30" value="${data.SHIP_ID}" readonly="readonly" /></dd>
				</dl>
				<dl>
					<dt>中文船名：</dt>
					<dd><input name="SHIP_NAME_CN" type="text" size="30" value="${data.SHIP_NAME_CN}" /></dd>
				</dl>
				<dl>
					<dt>英文船名：</dt>
					<dd><input name="SHIP_NAME_EN" type="text" size="30" value="${data.SHIP_NAME_EN}" /></dd>
				</dl>
				<dl>
					<dt>海关英文船名：</dt>
					<dd><input name="SHIP_NAME_EN_CUS" type="text" size="30" value="${data.SHIP_NAME_EN_CUS}" /></dd>
				</dl>
				<dl>
					<dt>所有人中文：</dt>
					<dd><input name="SHIP_OWNER_CN" type="text" size="30" value="${data.SHIP_OWNER_CN}" /></dd>
				</dl>
				<dl>
					<dt>所有人英文：</dt>
					<dd><input name="SHIP_OWNER_EN" type="text" size="30" value="${data.SHIP_OWNER_EN}" /></dd>
				</dl>
				<dl>
					<dt>国籍：</dt>
					<dd><input name="SHIP_NATION_EN" type="text" size="30" value="${data.SHIP_NATION_EN}" /></dd>
				</dl>
				<dl>
					<dt>呼号：</dt>
					<dd><input name="CALL_SIGN" type="text" size="30" value="${data.CALL_SIGN}" /></dd>
				</dl>
				<dl>
					<dt>IMO：</dt>
					<dd><input name="IMO" type="text" size="30" value="${data.IMO}" /></dd>
				</dl>
				</fieldset>
				
				<fieldset>
					<legend>航次信息</legend>
					<dl>
						<dt>航次进：</dt>
						<dd><input name="COUNTRY_ID" type="text" size="30" value="${data.COUNTRY_ID}" class="required"/></dd>
					</dl>
					<dl>
						<dt>航次出：</dt>
						<dd><input name="COUNTRY_ID" type="text" size="30" value="${data.COUNTRY_ID}" class="required"/></dd>
					</dl>
					<dl>
						<dt>进出港类型：</dt>
						<dd><input name="COUNTRY_ID" type="text" size="30" value="${data.COUNTRY_ID}" class="required"/></dd>
					</dl>
					<dl>
						<dt>驶来港：</dt>
						<dd><input name="COUNTRY_CN" type="text" size="30" value="${data.COUNTRY_CN}" class="required" /></dd>
					</dl>
					<dl>
						<dt>目的港：</dt>
						<dd><input name="COUNTRY_EN" type="text" size="30" value="${data.COUNTRY_EN}" /></dd>
					</dl>
					<dl>
						<dt>驶往国：</dt>
						<dd><input name="MSA_CODE" type="text" size="30" value="${data.MSA_CODE}" /></dd>
					</dl>
					<dl>
						<dt>靠泊码头：</dt>
						<dd><input name="CUS_CODE" type="text" size="30" value="${data.CUS_CODE}" /></dd>
					</dl>
					<dl>
						<dt>靠泊泊位：</dt>
						<dd><input name="CIQ_CODE" type="text" size="30" value="${data.CIQ_CODE}" /></dd>
					</dl>
					<dl>
						<dt>靠泊时间：</dt>
						<dd><input name="IMM_CODE" type="text" size="30" value="${data.IMM_CODE}" /></dd>
					</dl>
					<dl>
						<dt>使用状态：</dt>
						<dd>
						<select class="combox" name="STATE" >
							<option value="1" <c:if test="${data.STATE==1}">selected</c:if> >启用</option>
							<option value="0" <c:if test="${data.STATE==2}">selected</c:if> >禁用</option>
						</select>
						<input name="CREATE_USER" type="hidden" value="${data.CREATE_USER}" />
						</dd>
					</dl>
				</fieldset>
				
				<fieldset>
					<legend>申报信息</legend>
				<dl class="nowrap">
					<dt>航次摘要：</dt>
					<dd><textarea name="description" cols="90" rows="3">${bean.description}</textarea></dd>
				</dl>
				<dl class="nowrap">
					<dt>货物摘要：</dt>
					<dd><textarea name="description" cols="90" rows="3">${bean.description}</textarea></dd>
				</dl>
				<dl>
					<dt>代理人信息：</dt>
					<dd><input name="SHIP_NAME_EN" type="text" size="30" value="${data.SHIP_NAME_EN}" /></dd>
				</dl>

				</fieldset>
				</div>
			</div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
		</div>

		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>

</div>
<script type="text/javascript">
/**
 * dialog上的表单提交回调函数
 * 服务器转回navTabId，可以重新载入指定的navTab. statusCode=DWZ.statusCode.ok表示操作成功, 自动关闭当前dialog
 * form提交后返回json数据结构,json格式和navTabAjaxDone一致
 */
function dialogAjaxDone(json){
	DWZ.ajaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		// alert(json.callbackType);
		if(json.callbackType){
			$(bs_country_list).submit();//刷新
			setTimeout(function(){$.pdialog.closeCurrent();}, 100);
		}
	}
}

</script>